home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / lh113src.zip / MAKEFILE < prev    next >
Text File  |  1989-06-25  |  1KB  |  59 lines

  1. #
  2. #  Makefile for lharc
  3. #    needs TC 1.5
  4. #
  5. #  To make Japanese version
  6. #        make
  7. #        or  make -Dlang=j
  8. #
  9. #  To make English version
  10. #        make -Dlang=e
  11. #
  12.  
  13. asm = tasm
  14. linker = tlink
  15. sw = -M -w-rvl -y -O -Z -d -k-
  16. !if !$d(lang)
  17. lang = e
  18. !endif
  19.  
  20. lharc.exe : lharc.obj util.obj huf.obj lzs.obj usage.obj\
  21.         sfxbin.obj sfx2bin.obj execute.obj
  22.     tcc $(sw) -elharc.exe sfxbin.obj sfx2bin.obj lharc.obj util.obj \
  23.         lzs.obj huf.obj execute.obj usage.obj
  24.  
  25. .c.obj :
  26.     tcc -c $(sw) $*
  27.  
  28. huf.obj : huf.asm
  29.     $(asm) /e /ml $*;
  30.  
  31. lzs.obj : lzs.asm
  32.     $(asm) /e /ml $*;
  33.  
  34. sfxbin.obj : sfx.asm
  35.     $(asm) /e /ml sfx;
  36.     $(linker) sfx,,sfx/m;
  37.     exe2bin sfx sfx.bin
  38.     bgiobj sfx.bin sfxbin _sfx
  39. # To change segment allignment (para -> byte)
  40. #        symdeb /"e 11a 28;w;q" sfxbin.obj (if you have symdeb leave this)
  41.          batty sfxbt.bat
  42. sfx2bin.obj : sfx2.asm
  43.     $(asm) /e /ml sfx2;
  44.     $(linker) sfx2,,sfx2/m;
  45.     exe2bin sfx2 sfx2.bin
  46.     bgiobj sfx2.bin sfx2bin _sfx2
  47. # To change segment allignment (para -> byte)
  48. #       symdeb /"e 11a 28;w;q" sfx2bin.obj (if you have symdeb leave this)
  49.         batty sfx2bt.bat
  50. execute.obj : execute.c
  51.     tcc -c -S $(sw) $*
  52.     $(asm) /e /ml $*;
  53.  
  54. usage.obj : usage_$(lang).c
  55.     tcc -c -ousage $(sw) usage_$(lang)
  56.  
  57. .cls.asm :
  58.     amscls $* $*
  59.